package org.example.redis;

import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;


@ConfigurationProperties(prefix = "spring.datasource.redis")
@Getter
@Setter
@Configuration
public class RedisPropertie {

    @Value("${spring.datasource.redis.host}")
    private String host;

    private Integer port;

    private String password;

    private Integer database;

    private Integer timeout;

    private Integer shutdownTimeout = 100;
}
